package hdu.edu.Dao;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import hdu.edu.Model.Person;
import hdu.edu.mappers.PersonMapper;

@Repository
public class personDao {
	@Autowired
	

	PersonMapper personMapper;
	

	public void addPerson(Person person) {
	
		personMapper.add(person);
	}
	public Person findByName(String username){
		return personMapper.findByName(username);
	}

}
